package com.qdlc.p2p.biz.service;

import java.util.List;

import com.qdlc.p2p.dal.common.model.jpa.PageDataList;
import com.qdlc.p2p.dal.dto.NewActivityRule;
import com.qdlc.p2p.dal.model.NewActivityRuleModel;

/**
 * Created by liaoxiangkai on 2015/11/12.
 */
public interface NewActivityRuleService {
    List<NewActivityRule> findByActivityId(long activityId);

    PageDataList<NewActivityRuleModel> list(NewActivityRuleModel model);

    NewActivityRuleModel findByActivityRuleId(long id);

    NewActivityRule save(NewActivityRuleModel model);

    int toggleStatus(NewActivityRuleModel model);

    NewActivityRule update(NewActivityRuleModel model);
}
